Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawPolygon Method / DrawPolygon(Quadrilateral,Color,Single,Single[]) Method
A quadrilateral specifying the polygon.
The line color.
The line width.
The dash pattern.

In This Topic
    DrawPolygon(Quadrilateral,Color,Single,Single[]) Method
    In This Topic
    Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.

    If the dashPattern array contains two or more items, the polygon is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawPolygon( _
       ByVal quadrilateral As Quadrilateral, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       ByVal dashPattern() As System.Single _
    ) 
    public void DrawPolygon( 
       Quadrilateral quadrilateral,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       System.float[] dashPattern
    )

    Parameters

    quadrilateral
    A quadrilateral specifying the polygon.
    lineColor
    The line color.
    lineWidth
    The line width.
    dashPattern
    The dash pattern.
    See Also